home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / clue.lha / clue / doc / clue.tex / node275_mn.html < prev    next >
Text File  |  1989-07-12  |  2KB  |  55 lines

  1.  
  2. <H3><A ID="SECTION007711100000000000000">
  3. Stream I/O Model</A>
  4. </H3><#5463#>
  5.            
  6.       
  7.  
  8. <A ID="4012"><tex2html_anchor_invisible_mark></A><A ID="4013"><tex2html_anchor_invisible_mark></A>
  9. In the stream I/O model, an interactive application exchanges character data
  10. with an <#4014#><TT>interactive-stream</TT><#4014#> contact<A ID="4015"><tex2html_anchor_invisible_mark></A>. 
  11. The stream I/O model represents applications which use a simple character-based
  12. style of user interaction and do not rely upon additional input from
  13. pointer devices.  Such applications have the following generic structure.
  14.  
  15. <UL>
  16. <LI>Create and open a stream.
  17. </LI>
  18. <LI>Perform application initialization.
  19. </LI>
  20. <LI>Read a command from the stream and execute it. 
  21. </LI>
  22. <LI>Repeat the previous step until the
  23. application terminates.
  24. </LI>
  25. </UL>
  26. No explicit references to a <#4018#><TT>contact-display</TT><#4018#> object are necessary. The
  27. stream I/O model is implemented in terms of the more basic event loop model,
  28. <A ID="4019"><tex2html_anchor_invisible_mark></A>
  29. using a <#4020#><TT>contact-display</TT><#4020#> object which is created automatically. 
  30.  
  31. <P>
  32. The <#4021#><TT>make-interactive-stream</TT><#4021#> function creates and returns an <#4022#><TT>interactive-stream</TT><#4022#> contact for
  33. use by a stream I/O application.
  34.  
  35. <P>
  36. <#4757#>
  37. <#4614#><FONT SIZE="+1"><#4023#><B>make-interactive-stream Function</B><#4023#></FONT><#4614#> 
  38. <A ID="4024"><tex2html_anchor_invisible_mark></A>
  39. <A ID="4025"><tex2html_anchor_invisible_mark></A>
  40. <DIV class="RIGHT">
  41. <tex2html_image_mark>#tex2html_wrap_inline10701#
  42. </DIV><#4757#>
  43.  
  44. <P>
  45. <DIV class="RIGHT">
  46. <tex2html_image_mark>#tex2html_wrap_inline10704#
  47. </DIV>
  48.  
  49. <P>
  50. <DIV class="RIGHT">
  51. <tex2html_image_mark>#tex2html_wrap_inline10705#
  52. </DIV>
  53.  
  54. <P>
  55. =0